<?php
drupal_add_css('css/style.dev1.css');
drupal_add_js('js/jquery.validate.min.js');
drupal_add_js('js/script.category.js');
?>
<div id="error">
    <ul></ul>
</div>
<form name="add_group" id="add_group" action="" method="POST">
    <div>
        <div class="node-form">
            <div class="standard">

                <?php
                $access = user_access('admin block');
                for($i = 1; $i <= 10; $i++) {
                    ?>
                    <div class="form-item">
                        <label class="label-in-line" for="group_name">Tên nhóm:</label> <input
                            type="text" value="" size="60" id="group_name" name="group_name[]"
                            maxlength="50"> <label class="label-in-line" for="group_position">Độ
                            ưu tiên:</label> <input type="text" value="<?php echo $i ?>"
                                                id="group_position" name="group_position[]" maxlength="2"
                                                style="width: 35px;">
                                                <?php
                                                if($access) {
                                                    ?>
                            <label class="label-in-line" for="group_status">Trạng
                                thái:</label> <select id="group_status" name="group_status[]">
                                <option value="<?php echo GROUP_STATUS_SHOW ?>">Hiển thị</option>
                                <option value="<?php echo GROUP_STATUS_HIDE ?>">Không hiển thị</option>
                            </select>         
                            <?php
                        }else {
                            ?>
                            <input type="hidden" name="group_status[]"
                                   value="<?php echo GROUP_STATUS_SHOW ?>" />
                                   <?php
                               }
                               ?>
                    </div>
                    <?php
                }
                ?>

                <input type="hidden" name="cate_id" id="cate_id"
                       value="<?php echo $data['cate']->cate_id ?>" /> <input
                       type="hidden" name="action" id="action"
                       value="<?php echo arg(2) ?>" /> <input type="submit" value="Lưu" />
                <input type="reset" value="Nhập lại" />
                <?php echo l('Quay lại', 'back-end/filter/property/' . arg(3)) ?>
            </div>
        </div>
    </div>
</form>